
<?
	// http://metal07.cafe24.com/andro/andro_sql_test.php

	$DBINFO['host']='localhost';
	$DBINFO['user']='metal07';
	$DBINFO['pass']='qweasd!@3';
	$DBINFO['name']='metal07';
	
	$_connect=@mysql_connect($DBINFO['host'], $DBINFO['user'], $DBINFO['pass']);
	if($_connect){
		if(@mysql_select_db($DBINFO['name'], $_connect)){
			$sql=mysql_query("SELECT * FROM kitty_member");
			while($rs=mysql_fetch_assoc($sql)){
				$output[] = $rs;
			}
			
			print(json_encode($output));
			
			mysql_close();
			
		}else{
			die("db selection error");
		}
	}else{
		die("db connection error");
	}
	
?>


